//
//  ViewController.m
//  Views
//
//  Created by iD Student on 6/27/13.
//  Copyright (c) 2013 iD Student. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
 
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    newImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myimage.png"]];
    [self.view addSubview:newImageView];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction) push:(id)sender
{
    [self performSegueWithIdentifier:@"goToView2" sender:(self)];
}
- (IBAction)remove:(id)sender
{
    [newImageView removeFromSuperview];
}
- (IBAction)add:(id)sender
{
    [self.view addSubview:newImageView];
}

@end
